#pragma once

template <typename num>
num min(num a, num b)
{
	return (a < b ? a : b);
}

template <typename num, typename ...args>
num min(num a, num b, args ...c)
{
	return min((a < b ? a : b), c...);
}